package com.yonyou.gmmc.service.forum.dao;

import java.util.List;
import java.util.Map;

import org.marketing.common.dto.forum.ForumTopicDto;
import org.marketing.common.dto.forum.ForumTypeDto;

import com.yonyou.gmmc.common.annotation.OracleDb;
import com.yonyou.gmmc.service.forum.model.TtForumTopic;

import feign.Param;
import tk.mybatis.mapper.common.Mapper;

@OracleDb
public interface TtForumTopicMapper extends Mapper<TtForumTopic> {

	//查询版块类型
	List<ForumTypeDto> getBoardType();
	
	//查询版块类型
	List<ForumTypeDto> getBoardTypePC();

	//查询标题列表
	List<ForumTopicDto> getTopicList(Map<String, Object> queryMap);

	//查询我的论坛
	Map<String, Object> queryMyForum(@Param("openId")String openId);

	//查询更多半版块列表
	List<ForumTypeDto> queryBoardList();

	//获取自增ID
	Long queryTopicId();

	//通过openId查询potentialUserId
	Long queryPotentialUserId(@Param("openId") String openId);

	//PC后台帖子列表查询
	List<ForumTopicDto> queryForumTopicPC(Map<String, Object> queryMap);

	//我的转发
	List<ForumTopicDto> queryMyTranspond(Map<String, Object> queryMap);

	//帖子详情
	ForumTopicDto topicDetails(@Param("topicId") Long topicId);

	//取消帖子置顶
	void cancelTopicTopPC(Map<String, Object> queryMap);

	//帖子置顶
	void updateTopicTopPC(Map<String, Object> queryMap);

	//查询经销商名称
	String queryDealerCode(Integer valueOf);

	//查询是否存在的topicId
	Long queryTopicIdR(Map<String, Object> queryMap);

	//删除内容为空的帖子图片
	void deleteTopicImg(Long potentialUserId);

	//删除内容为空的帖子
	void deleteTopic(Long potentialUserId);

}